home *** CD-ROM | disk | FTP | other *** search
/ Nejlepší hry / Nejlepsi hry.iso / hry / sea of chaos / sea_install.msi / _15C39AAA7726369D39812BD40F01CF6A / _FAB28D3C8D714F18A319177234389CAD < prev    next >
Text File  |  2005-03-02  |  555b  |  25 lines

  1. //pixel shader to sample texture and environment map and mixes with material color
  2. //Luke Lenhart
  3. //(C)2004-2005 Digipen Institute of Technology
  4.  
  5. sampler sampTex;
  6.  
  7. sampler sampCube;
  8.  
  9. struct PS_INPUT
  10. {
  11.     float2 Tex0 : TEXCOORD0;
  12.     float3 Tex1 : TEXCOORD1;
  13.     float4 Clr : COLOR;
  14.     //float FogClr : TEXCOORD2;
  15. };
  16.  
  17. float4 PShader(PS_INPUT In) : COLOR
  18. {
  19.     float4 clr=0.8f*texCUBE(sampCube,In.Tex1)+0.4f*tex2D(sampTex,In.Tex0); //float4(0.6f,0.14f,0.34f,0);
  20.     clr*=In.Clr;
  21.     clr.a=In.Clr.a;
  22.     //clr.xyz+=In.FogClr;
  23.     return clr;
  24. }
  25.